<template>
  <div>404错误
    <div v-for="item in awd" :key="this">
      <div v-for="i in item" :key="this">
        <span>{{i}}</span>
      </div>
    </div>
  </div>

</template>
<script>
  export default {
    data() {
      return {
        awd:[
                ['2xl','45646','456456','45646'],
                ['m','45646','456456','45646'],
                ['l','45646','456456','45646'],
                ['s','45646','456456','45646']
        ],
        al:[
          {'2xl':'123456',m:'123456',l:'456'},
          {'2xl':'213',m:'2',l:'5'},
          {'2xl':'32',m:'1',l:'45556'}
        ]
      }
    },
    methods:{
      aaa() {
        let xl = [];
       let all=[
          {'2xl':'123456',m:'123456',l:'456'},
          {'2xl':'213',m:'2',l:'5'},
          {'2xl':'32',m:'1',l:'45556'}
        ];
       let list = new Array([],[]);
        let name = Object.keys(all[0]);
        for (let i = 0;i < name.length;i++){
          list[i][0].push(name[i]);
          for (let j = 1;j<all[i].length;j++){
            let sizeName = name[i]
            list[i][j].push(all[i].sizeName)
          }
        }
      }
    }
  }
</script>
